package br.webchild.conexaoBanco;

import java.sql.*;

public class ConexaoBD {

	private static final String DRIVER = "org.postgresql.Driver";
	private static final String URL = "jdbc:postgresql://localhost:5432/webchild";
	private static final String USUARIO = "postgres";
	private static final String SENHA = "enhwi26g";

	public static Connection getConexao() throws SQLException {
		try {
			Class.forName(DRIVER);
			return DriverManager.getConnection(URL, USUARIO, SENHA);
		} catch (ClassNotFoundException e) {
			throw new SQLException(e);
		}
	}

}
